<script setup>
import { provide, ref } from 'vue'
import Son from './components/Son.vue'
const num = ref(10)
provide('n', num.value)


/* 实现后代向app根组件传值 */
const appHandle = (msg) => {
  console.log('app', msg);
}

provide('appHandle', appHandle)

</script>
<template>
  <div>
    御剑乘风来,除魔天地间!===vue3
    <Son></Son>
  </div>
</template>
<style lang='less'  scoped>
</style>